#ifndef OUTWIDGET_H
#define OUTWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QListWidget>
#include <QListWidgetItem>

#include "model/basemodel.h"
#include "control/mycontrol.h"
#include "data/stockdata.h"

class OutWidget : public QWidget
{
    Q_OBJECT
public:
    explicit OutWidget(QWidget *parent = nullptr);
    void init_Control();
    void init_Widget();
    void init_Connect();//初始化连接信号和槽
    void doStockOut();
private:
    QPushButton *returnBtn;
    QPushButton *ensureBtn;
    QLabel *things_idLab;
    QLabel *things_numberLab;

    QLineEdit *things_idEdit;
    QLineEdit *things_numberEdit;

    QHBoxLayout *L_eLay;
    QHBoxLayout *Leay;
    QVBoxLayout *Lay;
    QHBoxLayout *BtnLay;

    StockData *stock;

    BaseModel *model;

    MyControl *control;

signals:
    void returnManager();

public slots:
     void on_retutrnBtn_cliked();
     void on_ensureBtn_cliked();
};

#endif // OUTWIDGET_H
